<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */
$this->activemenu = 21;
$this->pageTitle='Liên hệ với chúng tôi';
$this->breadcrumbs=array(
	'Liên hệ',
);
?>

<div class="head-tool">
	<h3 class="main-title">Liên hệ</h3>
</div>
<div class="content-box">
<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php else: ?>


<div class="form contact">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<?php echo $form->errorSummary($model); ?>
<table>
	<tr>
		<td>Họ tên: </td>
		<td><?php echo $form->textField($model,'name'); ?></td>
	</tr>
	<tr>
		<td>Email: </td>
		<td><?php echo $form->textField($model,'email'); ?></td>
	</tr>
	<tr>
		<td>Mobile: </td>
		<td><?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?></td>
	</tr>
	<tr>
		<td>Nội dung: </td>
		<td><?php echo $form->textArea($model,'body', array('style'=>'width: 415px; height: 130px;')); ?></td>
	</tr>
	<tr>
		<td colspan="2" align="right"><button type="submit">Gửi</button></td>
	</tr>
		
	</div>
</table>
<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>
</div>
